#ifndef __BLDC_h_
#define __BLDC_h_
extern unsigned int BLDC_HallValue;
extern unsigned int BLDC_bPositive;
extern unsigned int BLDC_bSpeedError;
extern unsigned int BLDC_CurSpeed;
extern unsigned int BLDC_Timer[64];
extern unsigned int BLDC_TimerIndex;
extern unsigned int BLDC_PDC;
extern unsigned long BLDC_QiDong;
extern unsigned int BLDC_bOutSpeed;
extern unsigned int BLDC_oldHallValue;
extern int BLDC_SpeedRef;
#define BLDC_HALL1 PORTDbits.RD5
#define BLDC_HALL2 PORTDbits.RD6
#define BLDC_HALL3 PORTDbits.RD7
void BLDC_GetHall(void);
void BLDC_Init(void);
void BLDC_ChangePhasic(void);
void BLDC_CaclSpeed(void);
void BLDC_PI4Speed(void);
#endif
